<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    //判断一个整数，属于哪个范围：大于0，等于0，小于0 
     var num = 12
     if(num>0){
         console.log(num+">0")
     }else if(num<0){
        console.log(num+"<0");
     }else{
         console.log(num+"=0");
     }
     //怎么判断整数：当 数字 % 1== 0,就表示这个数字是整数
     var num1 =10.1
     if(num1 % 1 === 0){
        console.log(num1+"是整数")
     }else{
         console.log(num1+"不是整数")
     }
</script>